<!DOCTYPE html>
<!--suppress ThymeleafVariablesResolveInspection -->
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head th:include="head.html::head">
  <link th:href="@{/local/css/login.css}" rel="stylesheet">
</head>
<body>
<div id="top" th:include="head.html::top"></div>
<div id="middle">
  <div id="left" th:include="left.html::left"></div>
  <div id="right">

    <form action="/admin/gotoaddUsers" method="get">
      <input type="submit" value="添加会员">
    </form>
    <table>
      <div th:text="${msg}"></div>
      <tr>
        <th>会员ID</th>
        <th>会员姓名</th>
        <th>会员密码</th>
        <th>性别</th>
        <th>出生年月</th>
        <th>城市</th>
        <th>电话</th>
        <th>邮件</th>
        <th>qq</th>
        <th>信用</th>
        <th>注册时间</th>
        <th>图片</th>

      </tr>
      <tr th:each="users:${usersList.list}">
        <td th:text="${users.getUid}"></td>
        <td th:text="${users.getUname()}"></td>
        <td th:text="${users.getUpwd()}"></td>
        <td th:text="${users.getUsex()}"></td>
        <td th:text="${users.getUbirth()}"></td>
        <td th:text="${users.getUcity()}"></td>
        <td th:text="${users.getUphone()}"></td>
        <td th:text="${users.getUemail()}"></td>
        <td th:text="${users.getUqq()}"></td>
        <td th:text="${users.getUcredit()}"></td>
        <td th:text="${#calendars.format(users.getUregtime(),'yyyy-MM-dd')}"></td>

        <td>
      <img th:src="'/img/'+ ${users.getUimage()}" style="width: 200px;">
        </td>

        <td>
          <a th:href="@{/admin/delUsers/} + ${users.getUid()}">删除</a>
          <a th:href="@{/admin/users/} + ${users.getUid()}">编辑</a>
        </td>
      </tr>
    </table>
    <div th:include="page.html::mypage(users,${usersList})"></div>
  </div>
</div>
<div id="bottom" th:include="bottom.html::bottom"></div>

</body>
</html>